import yaml

def load_data(path):
    with open(path, 'r', encoding='utf-8') as f:
        test_data = yaml.load(f, Loader=yaml.SafeLoader)
        return test_data
    

if __name__ == '__main__':
    yaml_data = load_data(r'D:\git_zhaol\pytest\bilibili_pytest\test_data\bili_lgoin.yaml')
    print(yaml_data)